
# Copy all the .h and .cpp files (excluding game_music_emu.cpp!!) from the Windows project to the gamemusicemu/android/jni folder

# Open a command prompt and go to the gamemusicemu/android folder

# Compile the class with native methods
javac GameMusicEmu.java

# Copy the generated class to bin/classes/net/gamephase/Audio (match your package name after bin/classes)

# Create a jni header file (use this to create methods in jni_stubbs.cpp)
javah -classpath bin/classes -jni net.gamephase.Audio.GameMusicEmu

# View native methods of class (optional, used for testing / verifying only)
javap GameMusicEmu.class

# Build the shared library (.so, 32bit)
ndk-build NDK_HOST_32BIT=1

# There should now exist a libs folder with subfolders named according to architectures, copy the folders (for the architectures you are going to use) to [PATH_OF_GMS_PROJECT]/extensions/[EXTENSION_NAME]/AndroidSource/libs/